display property

it is difines how the components (div, hyperlink,heading, etc) are going to be plased on the web page .

it is used to define the display of the different parts of a web page .

SYNTAX= display:value;



value of display property

1) Inline

it is used to display an element as Inline element .

2) block

it is used to display an element as block element .

it is starts on a new line and takes up the whole width of the window.

3)inline-block

it is similar to inline but diierent is that you can able to set the width and height.

4) none

the element completely removed.

none property is remove the element therfore please see the coding .

also use as
p{css syntax}
p.class{css syntax}
p.class{css syntax}
it is show to all p tag but p.class(using display property) you can change it